package test;

/*
 * 测试类
 * 所有数据放在该类的init方法运行调试
 * @time:2014-10-02
 */
public class Index {
	
	public void init(){
		
		int[] devNums={0,1,0};
		
		
		boolean result=(Boolean)controller.Ram.getObject().createProc(178,5,19,devNums).get("result");
		System.out.println("尝试申请内存："+result);
		
		devNums[1]=2;
		devNums[2]=1;
		
		result=(Boolean)controller.Ram.getObject().createProc(256,5,5,devNums).get("result");
		System.out.println("尝试申请内存："+result);
		
		devNums[1]=2;
		devNums[2]=1;
		
		result=(Boolean)controller.Ram.getObject().createProc(15,5,10,devNums).get("result");
		System.out.println("尝试申请内存："+result);
		
		result=(Boolean)controller.Ram.getObject().applyDev(1,1,1,2);
		System.out.println("尝试申请设备："+result);
		
		
		result=(Boolean)controller.Ram.getObject().applyDev(1,1,1,1);
		System.out.println("尝试申请设备："+result);
	
		controller.Disk.getObject().test();
		
	}
	
}
